<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html >
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--机构列表</title>
 <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
 <link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/js/common.js" type="text/javascript"></script>
 <script src="${ctxStatic}/js/usualassessment/usertemp.js?v=<%=System.currentTimeMillis()%>"  type="text/javascript"></script>
</head>
<body>
<div class="currentnav"><span class="tiao"></span><span class="navtitle">模板管理</span></div>
<div class="tabregion">
 <div class="layui-tab layui-tab-brief" lay-filter="tabcontent" style="margin-top:0">
  <ul class="layui-tab-title">
    <li lay-id="0"  class="layui-this">模板列表</li>
    <li lay-id="1" >人员列表</li>
    <!--  <li lay-id="2">模板详情</li>-->
  </ul>
  <div class="layui-tab-content" style="height: 100px;">
   <div class="layui-tab-item layui-show">
    <div class="serchcontent">
	   <div class="search">
     <table>
      <tr>
       <td>模板名称：</td>
       <td><input type="text" class="text" style="width:200px" id="templatename"/></td>
       <td>
         <input type="button" class="button" value="查询" id="btnquery" onclick="vUserTemp.searchtable()"  />
		  <input type="button" class="button" value="添加" onclick="vUserTemp.openaddtemp()" />
       </td>
      </tr>
     </table>
     </div>
     </div>
     
      <div class="content">
		   <div id="list" class="list" lay-filter="templatelist" ></div>
		   <script type="text/html" id="operate">
            <img class="btn-img" src="${ctxStatic}/images/button/detail.png" lay-event="userdetail" alt="详情" title="详情">
            {{#  if(d.isshowplyymb>0){ }}
            <img class="btn-img" src="${ctxStatic}/images/button/jieshou.png" lay-event="yinyong" alt="批量应用模板" title="批量应用模板">
            {{#  } }}            
            {{#  if(d.usercount<=0){ }}
            <img class="btn-img" src="${ctxStatic}/images/index/btn_edit.png" lay-event="edit" alt="编辑" title="编辑">
            <img class="btn-img" src="${ctxStatic}/images/index/btn_delete.png" lay-event="del" alt="删除" title="删除">
            {{#  } }}
           </script>
           
            <script type="text/html" id="showTpl">
              <span class="dbclickspan" ondblclick="vUserTemp.OpenShowTemp({{ d.templateid }},{{ d.groupid }})"> {{ d.templatename }}<span>
            </script>
          
	  </div>
     
     
   </div>
   
   <div class="layui-tab-item">
   
    <div class="serchcontent">
	   <div class="search">
     <table>
      <tr>
       <td>人员姓名：</td>
       <td><input type="text" class="text" style="width:200px" id="realname"/></td>
       <td>
         <input type="button" class="button" value="查询" id="btnquery" onclick="vUserTemp.searchusertable()"  />
       </td>
      </tr>
     </table>
     </div>
     </div>
      <input type="hidden" id="templateid" value=""/>
      <div id="userlist" class="list" lay-filter="userlist" ></div>
   </div>
   
  </div>
</div>
</div>

</body>
</html>